# 构建依赖
FROM java:openjdk-8-jre-alpine
LABEL maintainer=jnpf-team

ENV WORKDIR "/home/jnpf-server"

WORKDIR ${WORKDIR}

COPY target/*.jar ${WORKDIR}/jnpf-admin.jar

EXPOSE 30000

# 启动应用
ENTRYPOINT ["/bin/sh","-c","java -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/./urandom -jar ${WORKDIR}/jnpf-admin.jar"]
